//============================================================================
/**
 *
 *	@file		phc_diary_define.h
 *	@brief		PHC日記 定義ファイル
 *	@author		hosaka genya
 *	@data		2009.01.28
 *
 */
//============================================================================
#pragma once

//=============================================================================
/**
 *								定数定義
 */
//=============================================================================

enum
{
	CRS_ID_GRASS = 0,	///< 草原
	CRS_ID_FORST,		///< 森
	CRS_ID_TOWN,		///< 町
	CRS_ID_CITY,		///< 街
	CRS_ID_MOUNT,		///< 山
	CRS_ID_CAVE,		///< 洞窟
	CRS_ID_LACUS,		///< 湖
	CRS_ID_SEA,			///< 海
	CRS_ID_MAX,
};

static int g_course_bgm_tbl[ CRS_ID_MAX ] =
{
	{ SEQ_GS_R_1_29_PHC },		// 草原
	{ SEQ_GS_R_1_29_PHC },		// 森
	{ SEQ_GS_R_6_38_PHC },		// 町
	{ SEQ_GS_R_6_38_PHC },		// 街
	{ SEQ_GS_R_7_42_PHC },		// 山
	{ SEQ_GS_D_CHIKATSUURO_PHC },	// 洞窟
	{ SEQ_GS_R_1_29_PHC },			// 湖
	{ SEQ_GS_NAMINORI_PHC },		// 海
};

enum
{
	// --- L/R ---
	OBJ_UI_L_X = 4*8,
	OBJ_UI_L_Y = 22*8,
	OBJ_UI_R_X = 10*8,
	OBJ_UI_R_Y = 22*8,

	// --- もどるボタン ---
	OBJ_RET_X = 27 * 8,
	OBJ_RET_Y = 22 * 8,

	OBJ_GROUND_X = 16*8,
	OBJ_GROUND_Y = 9*8 - 4,

	OBJ_POKE_L_X = 13*8,
	OBJ_POKE_L_Y = 9*8,
	OBJ_POKE_R_X = 19*8,
	OBJ_POKE_R_Y = 9*8,
	OBJ_POKE_N_X = 16*8,
	OBJ_POKE_N_Y = 9*8,

	OBJ_CMN_L_X = 13*8,
	OBJ_CMN_L_Y = 7*8,
	OBJ_CMN_R_X = 19*8,
	OBJ_CMN_R_Y = 7*8,
	OBJ_CMN_N_X = 16*8,

	OBJ_EFF_S_Y = 5*8,
	OBJ_EFF_L_Y = 3*8,
};

enum
{
	OBJ_BGPRI = 2,

	OBJ_DISTANCE = FX32_CONST( 524 ),	///< 回りこみ防止
	OBJ_NUM = 32,						///< とりあえずの上限
};

enum
{
	ACT_ID_NULL = 0,
	ACT_ID_COMM_IN = 1,			///< PHC通信(IDスタート)
	ACT_ID_COMM_END = 10,		///< PHC通信(IDエンド)
	ACT_ID_DOWSING = 11,		///< ダウジング
	ACT_ID_ITEM_RARE = 12,		///< レアアイテム入手
	ACT_ID_POKETORE = 13,		///< ポケトレ：捕獲
	ACT_ID_POKE_RARE = 14,		///< レアポケゲット
	ACT_ID_POKE_TORE_AWAY = 15,	///< ポケトレ：逃げた
	ACT_ID_POKE_TORE_FAIL = 16,	///< ポケトレ：負けた
	ACT_ID_EV_ITEM = 17,		///< イベント：アイテム入手
	ACT_ID_EV_WATT_IN = 18,		///< イベント：ワット(IDスタート)
	ACT_ID_EV_WATT_END = 22,	///< イベント：ワット(IDエンド)
	ACT_ID_TURETEKE = 23,		///< ポケモンつれてけ
	ACT_ID_POKE_RETURN = 24,	///< 強制帰宅
	ACT_ID_ACT_START = 25,		///< 開始イベント
	ACT_ID_ACT_END = 26,		///< 終了イベント
	ACT_ID_STEP = 27,			///< 歩数変化
	// ** PHC日記では12,14に換算する **
	ACT_ID_SHARE_ITEM = 28,		///< 配布アイテム入手
	ACT_ID_SHARE_POKE = 29,		///< 配布ポケモン入手
	ACT_ID_MAX,
	ACT_ID_APP_MAX = 28,		///< アプリ内で扱うID MAX

	DOWSING_LIMIT = 4,
	POKETORE_LIMIT = 4,
};

//--------------------------------------------------------------
///	OBJ RES ID
//==============================================================
enum {
	PAL_ID_M_MAIN,
	PAL_ID_M_ICON,
	PAL_ID_M_POKE_ME,
	PAL_ID_M_POKE_YOU,
	PAL_ID_MAX,
};
enum {
	CHR_ID_M_MAIN,
	CHR_ID_M_ICON,
	CHR_ID_M_POKE_ME_32,
	CHR_ID_M_POKE_YOU_32,
	CHR_ID_M_POKE_ME_64,
	CHR_ID_M_POKE_YOU_64,
	CHR_ID_MAX,
};
enum {
	CEL_ID_MAIN,
	CEL_ID_ICON,
	CEL_ID_POKE_32,
	CEL_ID_POKE_64,
	CEL_ID_MAX,
};
enum {
	ANM_ID_MAIN,
	ANM_ID_ICON,
	ANM_ID_POKE_32,
	ANM_ID_POKE_64,
	ANM_ID_MAX,
};

//--------------------------------------------------------------
///	OBJ Priority
//==============================================================
enum
{
	PRI_UI = 0,
	PRI_ITEM,
	PRI_HERO,
	PRI_POKE,
	PRI_SHADOW,
	PRI_GROUND,
};

enum
{
	MSGBUF_MY_TRAINER = 0,
	MSGBUF_MY_NICK = 1,
	MSGBUF_YOUR_TRAINER = 2,
	MSGBUF_YOUR_NICK = 3,
	MSGBUF_ITEM = 4,
	MSGBUF_GET_POKE = 5,
	MSGBUF_HOUR = 6,
	MSGBUF_STEP = 7,
	MSGBUF_COURSE = 8,
	MSGBUF_MONTH = 9,
	MSGBUF_DATE = 10,
	MSGBUF_DEBUG_1 = 11,
	MSGBUF_DEBUG_2 = 12,
	MSGBUF_MAX,
};

//=============================================================================
/**
 *								構造体定義
 */
//=============================================================================

//=============================================================================
/**
 *								プロトタイプ宣言
 */
//=============================================================================

